import http from "../http";

interface listParams {
  publishState: number;
  _expand: string;
  _sort: string;
  _order: string;
  _limit: number;
}

const newsApi = {
  list(params: listParams) {
    return http.get("/news", params);
  },
};

export default newsApi;
